package com.property.biz.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.property.biz.ProvCityDistBiz;
import com.property.dao.ProvCityDistDao;
import com.property.entity.ProvCityDist;

@Service("provCityDistBiz")
@Scope("prototype")
public class ProvCityDistBizImpl implements ProvCityDistBiz{
	@Autowired
	private ProvCityDistDao provCityDistDao;

	public List<ProvCityDist> getProv(String TYPE) {
		return provCityDistDao.getProv(TYPE);
	}

	public List<ProvCityDist> getCity(int provId) {
		return provCityDistDao.getCity(provId);
	}

	public List<ProvCityDist> getDist(int cityId) {
		return provCityDistDao.getDist(cityId);
	}

	public ProvCityDist cityAll(int id) {
		
		return provCityDistDao.cityAll(id);
	}

	public ProvCityDist provAll(int id) {
		
		return provCityDistDao.provAll(id);
	}

	public ProvCityDist distAll(int id) {
		
		return provCityDistDao.distAll(id);
	}

}
